home comics writing pictures archive about

Lang.h

Language: C++
Last Modified: 2022-08-18 12:03:01 AM UTC
File Size: 998 bytes
http://www.penguinstew.ca/example/CodeFormater/Lang.h
#pragma once
#include <String>
#include <vector>
#include <libxml/tree.h>
#include "TypeIdPair.h"
class Lang
{
std::string type;
std::string colour;
std::string startSequence;
std::string endSequence;
std::vector<TypeIdPair> startIds;
std::vector<TypeIdPair> endIds;
bool baseType;
bool colourInLang;
public:
static const std::string LANG_PATTERN_BASE;
static const std::string LANG_PATTERN_INLANG;
Lang();
Lang(std::string startType);
Lang(xmlNodePtr xmlNode);
std::string GetType();
std::string GetColour();
std::string GetStartSequence();
std::string GetEndSequence();
std::vector<TypeIdPair> GetStartIds();
std::vector<TypeIdPair> GetEndIds();
bool IsBaseType();
bool IsColourInLang();
bool IsStart(std::string line, int pos, TypeIdPair typeId);
bool IsEnd(std::string line, int pos, TypeIdPair typeId);
int PrintStart(std::stringstream& lineStream);
int PrintEnd(std::stringstream& lineStream);
std::string ToString();
};
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40